package cn.powerone.autotest.domain;

import java.util.Date;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.powerone.common.annotation.Excel;
import cn.powerone.common.annotation.Excel.ColumnType;
import cn.powerone.common.core.domain.BaseEntity;

/**
 * 项目成员关联对象 autoTest_project_members
 * 
 * @author autotest
 */
public class ProjectMember extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 成员关系唯一标识 */
    private String id;

    /** 关联项目ID */
    private String projectId;

    /** 成员用户标识 */
    private String userId;

    /** 成员角色(owner/admin/editor/viewer) */
    private String role;

    /** 加入时间 */
    private Date joinedAt;

    /** 用户名称 */
    private String userName;

    /** 用户昵称 */
    private String nickName;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setProjectId(String projectId)
    {
        this.projectId = projectId;
    }

    public String getProjectId()
    {
        return projectId;
    }
    public void setUserId(String userId)
    {
        this.userId = userId;
    }

    public String getUserId()
    {
        return userId;
    }
    public void setRole(String role)
    {
        this.role = role;
    }

    public String getRole()
    {
        return role;
    }
    public void setJoinedAt(Date joinedAt)
    {
        this.joinedAt = joinedAt;
    }

    public Date getJoinedAt()
    {
        return joinedAt;
    }

    public String getUserName()
    {
        return userName;
    }

    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getNickName()
    {
        return nickName;
    }

    public void setNickName(String nickName)
    {
        this.nickName = nickName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("projectId", getProjectId())
            .append("userId", getUserId())
            .append("role", getRole())
            .append("joinedAt", getJoinedAt())
            .append("userName", getUserName())
            .append("nickName", getNickName())
            .toString();
    }
}